package com.movitech.mobile.cz.base.supplier.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.movitech.mobile.cz.base.common.util.CommonConstants;
import com.movitech.mobile.cz.base.supplier.entity.SSuppliersRankScores;
import com.movitech.mobile.cz.base.supplier.mapper.SSuppliersRankScoresMapper;
import com.movitech.mobile.cz.base.supplier.service.SSuppliersRankScoresService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 评分定级-得分详情 服务实现类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-09-07
 */
@Service
public class SSuppliersRankScoresServiceImpl extends ServiceImpl<SSuppliersRankScoresMapper, SSuppliersRankScores> implements SSuppliersRankScoresService {

    @Override
    public List<SSuppliersRankScores> getByRankId(String rankId) {

         return selectList(new EntityWrapper<SSuppliersRankScores>().eq("suppliers_rank_id",rankId).eq("del_flag", CommonConstants.DEL_FLAG_NORMAL));
    }
}
